﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace System.Web.Mvc
{
    public static class Utility
    {
        public static string Script(this HtmlHelper html, string path) { 
            var filePath = VirtualPathUtility.ToAbsolute(path); 
            return "<script type=\"text/javascript\" src=\"" + filePath + "\"></script>"; }

        public static string Link(this HtmlHelper html, string path) {
            var filePath = VirtualPathUtility.ToAbsolute(path);
            return "<link href=\"" + filePath + "\" rel=\"stylesheet\" type=\"text/css\"></link>";
        }
    }
}
